<include file="Public:header" />
    <bootstrapcss />
    <icheckcss />
<body class="gray-bg">
<div class="wrapper wrapper-content animated fadeInRight">

<!-- 导航栏结束 -->
<ul id="myTab" class="nav nav-tabs">
   <li>
         <a href="{:U('Admin/Rule/admin_user_list')}">管理员列表</a>
   </li>
   <li class="active">
        <a href="{:U('Admin/Rule/add_admin')}">修改管理员</a>
    </li>
</ul>
<form class="form-inline" method="post">
    <input type="hidden" name="id" value="{$user_data['userid']}">
    <table class="table table-striped table-bordered table-hover table-condensed">
        <tr>
            <th>管理组</th>
            <td>
                <foreach name="data" item="v">
                    {$v['title']}
                    <input class="xb-icheck" type="checkbox" name="group_ids[]" value="{$v['id']}" <in name="v['id']" value="$group_data"> checked="checked" </in> >
                    &emsp;                    
                </foreach>
            </td>
        </tr>
        <tr>
            <th>用户名</th>
            <td>
                <input class="form-control" type="text" name="userName" value="{$user_data['username']}">
            </td>
        </tr>
        <tr>
            <th>登录密码</th>
            <td>
                <input class="form-control" type="password" name="pwd" >如不改密码；留空即可
            </td>
        </tr>
        <tr>
            <th>真实姓名</th>
            <td>
                <input class="form-control" type="text" name="name" value="{$user_data['name']}">
            </td>
        </tr>
        <tr>
            <th>状态</th>
            <td>
                <span class="inputword">允许登录</span>
                <input class="xb-icheck" type="radio" name="state" value="ON" <eq name="user_data['state']" value="ON"> checked="checked" </eq> >
                &emsp;
                <span class="inputword">删除</span>
                <input class="xb-icheck" type="radio" name="state" value="OFF" <eq name="user_data['state']" value="OFF"> checked="checked" </eq> >
            </td>
        </tr>
        <tr>
            <th></th>
            <td>
                <input class="btn btn-success" type="submit" value="修改">
            </td>
        </tr>
    </table>
</form>
</div>
<bootstrapjs />
<icheckjs color="blue" />
</body>
</html>